package com.guys8.cemsbackend.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * (Outschool)表实体类
 *
 * @author breeze
 * @since 2022-08-24 16:11:31
 */
@Setter
@Getter
@ToString
@Data
@Accessors(chain = true)
public class Outschool extends Model<Outschool> {
    @TableId(value = "out_id",type = IdType.AUTO)
    private Integer outId;
    private Integer userId;
    private Date upTime;
    private Date outTime;
    private String outCause;
    private String wplace;
    private Date backTime;
    //假条图片地址
    private String notePath;
    //0-审核中，1-通过，2-不通过
    private Integer auditState;
    private Date auditTime;
    private Integer auditAccount;
    @TableLogic
    private Integer isDelete;
    private Integer ext1;
    private String ext2;

    public Outschool(){}
    public Outschool(Integer userId, Date outTime, String outCause, String wplace, String notePath, Date backTime){
        setUserId(userId);
        setUpTime(new Date());
        setOutTime(outTime);
        setOutCause(outCause);
        setWplace(wplace);
        setNotePath(notePath);
        setBackTime(backTime);
        setAuditState(0);
        setIsDelete(0);
    }
}

